#include"comm.hpp"
int main()
{
    sleep(3);
    char* shmaddr=(char*)shmat(GetShmid(),nullptr,0);
    log.logmessage(Info,"processb 连接上共享内存");
    int fd=OpenChannel(O_WRONLY);
    char flag='1';
    sleep(3);
    while(true)
    {
       cout<<"Please Enter@: ";
       cin.getline(shmaddr,SIZE_SHM);
       write(fd,&flag,1);
       
    }
    log.logmessage(Info,"processb quit");


    return 0;
}